package cn.zane.principle.openAndClosePrinciple.design.impl;

/**
 * @Author: zane
 * @Date: 2024/12/13
 * @Description: 扩展集成，实现自己的需求
 */
public class CalculationAreaExtract extends CalculationArea {

    private final static double PI = 3.141592653D;

    @Override
    public double circular(double radius) {
        return PI * radius * radius;
    }
}
